package ioc;

import view.DisplayerPanel;

public class IoCClavierImpl implements IoCClavier {

	private static IoCClavier iocClavierInstance;
	
	private boolean[] etatTouche;
	
	public static IoCClavier IoCClavierInstance() {
		if(iocClavierInstance == null) {
			iocClavierInstance = new IoCClavierImpl();
		}
	
		return iocClavierInstance;
	}
	
	private IoCClavierImpl() {
		etatTouche = new boolean[4];
	}
	
	@Override
	public void setEtatTouche(int i, boolean etat) {
		etatTouche[i] = etat;
	}

	@Override
	public boolean touchePressee(int i) {
		return etatTouche[i];
	}

}
